<?php
class question{
$questionid
public function search($search)
 { 
   $Query =("SELECT * FROM project.question WHERE question.Question_body LIKE '%$search%'");
   $sql=mysql_query($Query ) or die("notselect");
   $numrows=mysql_num_rows($sql);
  if($numrows!=0 ){
      while($row =mysql_fetch_assoc($sql))
	  {
	    $Quesionid=$row['Question_ID'];
	    $Quesion=$row['Question_body'];
		$studentid=$row['student_ID'];
		$courseid=$row['course_ID'];
		echo "$Quesionid , ASKED BY , $studentid";
		?>
		</br>
		<form action ="answerform.php" method ="post" name="myform">
		<input type="hidden" name="quesid" value="<?php  echo " $Quesionid";?> "/>
	    <input type="hidden" name="id" value="<?php  echo "$studentid";?> "/> 
		<input type ="submit" value="<?php  echo "$Quesion "; ?> " class="btn2"  />	
		</form>
		</br>
<?php
 }
 }

}
public function delete($questionid)
 {
    $Query ="DELETE FROM project.question WHERE  question.Question_ID=$questionid  ";
   
   
  $requery=mysql_query($Query) or die("not deleted");
	
 } 




}



?>